package com.jinbei.common.Enum;

/**
 * 枚举返回状态
 * Created by zflu on 2018/7/8.
 */
public enum ConstantsEnum {

    SUCCESS_200(200,"success"),
    SUCCESS_201(201,"success"),
    ERROR_500(500,"server error"),
    ;

    private Integer code;

    private String msg;

    ConstantsEnum(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    @Override
    public String toString() {
        return "ConstantsEnum{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                '}';
    }
}
